/*
 * 文件名：GlobalConstant.java
 * 版权：Copyright by will_awoke
 * 描述：
 * 修改人：lyh
 * 修改时间：2014-5-27
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.qbgs.constant;

/**
 * 参数常量
 * @author will_awoke
 * @version 2014-5-27
 * @see GlobalConstant
 * @since
 */
public class GlobalConstant
{

    /**
     * 默认每页显示记录数 
     */
    public static final Integer QUERY_PER_PAGE_DEF = 10;

    //修改操作提示
    public final static String EDIT_SUCCESS = "修改操作成功！";

    public final static String EDIT_FAILED = "修改操作失败！";

    public final static String EDIT_ERROR = "修改操作出现异常！请联系系统管理员！";

    //新增操作提示
    public final static String INSERT_SUCCESS = "新增操作成功！";

    public final static String INSERT_FAILED = "新增操作失败！";

    public final static String INSERT_ERROR = "新增操作出现异常！请联系系统管理员！";

    //删除操作提示
    public final static String DELETE_SUCCESS = "删除操作成功！";

    public final static String DELETE_FAILED = "删除操作失败！";

    public final static String DELETE_ERROR = "删除操作出现异常！请联系系统管理员！";

    //上传操作提示
    public final static String IMPORT_SUCCESS = "上传导入成功！";

    public final static String IMPORT_FAILED = "上传导入失败！";

    public final static String IMPORT_ERROR = "上传导入出现异常！请联系系统管理员！";

    //单一查询操作提示
    public final static String SINGLE_QUERY_SUCCESS = "查询操作成功！";

    public final static String SINGLE_QUERY_FAILED = "未查到相关数据！";

    public final static String SINGLE_QUERY_ERROR = "查询操作出现异常！请联系系统管理员！";

    //批量查询操作提示
    public final static String QUERRY_SUCCESS = "查询操作成功！";

    public final static String QUERRY_FAILED = "未查到相应数据！";

    public final static String QUERRY_ERROR = "查询操作出现异常！请联系系统管理员！";

    //绑定操作提示
    public final static String BIND_SUCCESS = "绑定操作成功！";

    public final static String BIND_FALIED = "绑定操作失败！";

    public final static String BIND_ERROR = "绑定操作出现异常！请联系系统管理员！";

    //global Controller 

    //session超时提示
    public final static String SESSION_TIMEOUT = "用户登录会话已过期，请重新登录！";

    //系统级错误
    public final static String GLOBAL_EXCEPTION = "系统内部异常！请联系系统管理员！";

    //用户名密码错误
    public final static String PASSWD_NAME_ERROR = "用户名或密码错误，请重新输入！";

    //原始密码错误
    public final static String OLD_PASSWD_ERROR = "原始密码错误，请重新输入！";

    //验证码错误
    public final static String SECURITYCODE_ERROR = "验证码错误，请重新输入！";

    //验证码错误
    public final static String SECURITYCODE_NULL = "验证码不能为空，请输入四位验证码！";

    /**
     * Session中存入的登录用户名 key
     */
    public final static String AUTH_SESSION_USERNAME_KEY = "authedUserName";

    // 没有操作权限
    public final static String NO_OPERATION_LIMIT = "您没有任何可操作权限，请联系系统管理员！";

    // 角色下绑定有用户
    public final static String ROLE_HAS_BIND_USERS = "该角色下存在绑定用户，无法删除！";

    // 用户默认密码
    public final static String DEFAULT_PASSWORD = "123456";

    // 用户正常状态
    public final static String USER_STATUS_NORMAL = "1";
    
    // 用户注销状态
    public final static String USER_STATUS_DELETED = "0";

    // 修改密码提示语
    public final static String CHANGE_PWD_OLD_IS_WRONG = "原始密码错误，请重新输入！";

    public final static String CHANGE_PWD_NEWS_NOT_EQUALS = "新密码确认密码不一致，请重新输入！";

    public final static String CHANGE_PWD_NEW_IS_DEFAULT = "新密码不能为系统默认密码！";

    public final static String CHANGE_PWD_SUCCESS = "修改密码成功！";

    public final static String CHANGE_PWD_FAILED = "修改密码失败！";

    public final static String CHANGE_PWD_ERROR = "修改密码出现异常！请联系系统管理员！";
    
    // 重置密码
    public final static String RESET_PWD_SUCCESS = "重置密码成功！";

    public final static String RESET_PWD_FAILED = "重置密码失败！";

    public final static String RESET_PWD_ERROR = "重置密码出现异常！请联系系统管理员！";
    
    // 用户登录账号已经存在
    public final static String USER_ADD_LOGIN_NAME_EXIST = "登录账号已存在！";

}
